#导包
from apii import login
from apii.login import login

# 测试数据
test_data = [
    {"username": "13488888888", "password": "123456"},
    {"username": "", "password": "123456"}
]
#遍历获取手机号
for i in test_data:
    phone = i["username"]
    # print(phone)
    #调用登录函数
    rst = login(phone)
    # print(rst)
    #断言
    if phone == "13488888888":
        assert "账号成功" == rst
        # assert "账号错误" == rst
#测试